xen: arm: handle initrd addresses above the 4G boundary
authorIan Campbell <ian.campbell@citrix.com>
Mon, 9 Dec 2013 11:43:35 +0000 (11:43 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Mon, 9 Dec 2013 15:28:55 +0000 (15:28 +0000)
commitae5d5fb58dcacaf7e2d5fbfbe7b565f401c62808
treeb861f3799ab5391a6e47041a89a5b2e300e9b75a
parent90ed3c202f2c8ce286735ca235dd1fdcbd35dd8f
xen: arm: handle initrd addresses above the 4G boundary

The Xgene platform has no RAM below 4G.

The /chosen/linux,initrd-* properties do not have "reg" semantics and
therefore #*-size are not used when interpreting. Instead they are are simply
numbers which are interpreted according to the properties length.

Fix this both when parsing the entry in the host DTB and when creating the
dom0 DTB. For dom0 we simply hardcode a 64-bit size, this is acceptable
even for a 32-bit guest.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Julien Grall <julien.grall@linaro.org>
xen/arch/arm/domain_build.c
xen/common/device_tree.c
xen/include/xen/device_tree.h